<div class="modal-header"><h3 class="modal-title">Import From URL</h3></div><div class="modal-body"><div class="form-group"><label for="url">URL</label><input type="text" class="form-control" autofocus ng-model="url" ng-change="fetch(url)" auto-focus="200"></div><p class="error" ng-if="error">{{error}}</p><p class="can-import" ng-if="canImport">✔ Valid URL</p></div><div class="modal-footer"><button class="btn btn-warning" ng-click="cancel()">Cancel</button> <button class="btn btn-primary" ng-click="ok()" ng-disabled="!canImport">Import</button></div>